import G6 from '@antv/g6';
import {G6Event} from '@antv/g6-core/lib/types';

export default function () {
    G6.registerBehavior('custom:anchor:hover', {
        getDefaultCfg() {
            return {

            };
        },
        getEvents() {
            return {
                'anchor:mouseenter': 'handleAnchorHover'
            } as {
                [key in G6Event]?: string;
            };
        },
        handleAnchorHover(event: MouseEvent) {
            // const graph = this.graph as Graph;
            // graph.setItemState(event.item, 'active-anchor', true);
        }
    });
}
